Source File
loki.go
Belonging Package
github.com/K-Phoen/grabana/target/loki
package loki// Option represents an option that can be used to configure a loki query.type Option func(target *Loki)// Loki represents a loki query.type Loki struct {Ref stringHidden boolExpr stringLegendFormat string}// New creates a new prometheus query.func ( string, ...Option) *Loki {:= &Loki{Expr: ,}for , := range {()}return}// Legend sets the legend format.func ( string) Option {return func( *Loki) {.LegendFormat =}}// Ref sets the reference ID for this query.func ( string) Option {return func( *Loki) {.Ref =}}// Hide the query. Grafana does not send hidden queries to the data source,// but they can still be referenced in alerts.func () Option {return func( *Loki) {.Hidden = true}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |